package com.inexas.cu.stratus;

public class StratusException extends RuntimeException {
    private static final long serialVersionUID = -638376378320987309L;

	public StratusException(String message) {
		super(message);
    }

	public StratusException(Class<?> type, String message) {
		super(type.getName() + ": " + message);
    }

	public StratusException(Entity entity, String message) {
		this(entity.getClass(), message);
    }

	public StratusException(Entity entity, String message, Exception e) {
		super(entity.getClass().getName() + '-' + entity.getIdent() + ": " + message, e);
    }

	public StratusException(Class<?> type, String message, Exception e) {
		super(type.getName() + ": " + message, e);
    }

	public StratusException(String message, Exception e) {
		super(message, e);
    }
}
